<table>
<tr><td class="login_image" ></td><td class="login_data">
    <%= error_messages_for "user" %>
    <%= start_form_tag :action => :register %>
    <table >
            <tr><td class="login_first"><label for="user_login">Login:</label></td><td class="login_second">
            <%= text_field :user, :login %></td></tr>
            </tr><tr><td class="login_first"><label for="user_email">E-mail:</label></td><td class="login_second">
            <%= text_field :user, :email %></td></tr>
            <tr><td class="login_first"><label for="request_teacher">I'm a teacher</label></td><td class="login_second">
            <%= check_box_tag :request_teacher %></td></tr>
            <tr><td class="login_first" ></td><td><%= submit_tag("Register") %></td></tr>
    </table>
    <%= end_form_tag %>
    <%= flash_info_tag %>
    <p><%= link_to("Go to login page", :controller => "login") %></p>
</td></tr>
</table>